#include "label.h"
#include <QDebug>

Label::Label(QWidget* parent) : QLabel(parent)
{

}

void Label::enterEvent(QEvent *event)
{
    (void)event;
//    qDebug() << "立刻离开框，并关了";
    this->setText("立刻离开框，并关了");
}

void Label::leaveEvent(QEvent *event)
{
    (void)event;
//    qDebug() << "没关就是开了?";
    this->setText("没关就是开了?");
}
